package com.training.java.core.collections.cellPhone.post15;

import java.util.HashSet;
import java.util.Set;

public class CellPhoneSetDemo {

	public static void main(String[] args) {

		CellPhone nokia = new CellPhone("Nokia", "Dual sim", "ios7");
		CellPhone galaxy = new CellPhone("Samsung", "Galaxy S4", "Android");
		CellPhone iPhone = new CellPhone("Apple", "iPhone 5C", "ios7");
		CellPhone iPhone2 = new CellPhone("Apple", "iPhone 5C", "ios7");
		CellPhone iPhone3 = new CellPhone("Apple", "iPhone3", "ios7");
		CellPhone nokia2 = new CellPhone("Nokia", "Dual sim", "ios5");
		
		
		Set<CellPhone> cells = new HashSet<CellPhone>();
		cells.add(nokia);
		cells.add(galaxy);
		cells.add(iPhone);
		cells.add(iPhone2);
		cells.add(iPhone3);
		cells.add(nokia2);
		
		
		for(CellPhone aphone: cells)
		{
			System.out.println("Make is " + aphone.getMake());
			System.out.println("Model is " + aphone.getModel());
			System.out.println("Operating System is " + aphone.getOperatingSystem());
			System.out.println("************");
		}
	}

}
